<template>
	<view class="my-content">
		<ListByNews :list="newList" @doClick="toInfo"></ListByNews>
	</view>
</template>

<script>
	import ListByNews from '../components/ListByNews.vue'
	export default {
		components: {
			ListByNews
		},
		data() {
			return {
				newList: []
			};
		},
		methods: {
			toInfo(item) {
				this.$u.route({
					url: 'pages/getCustomer/newInfo/newInfo',
					params: {
						...item
					}
				})
			},
		}
	}
</script>
<style lang="scss" scoped>
	.my-content {
		background-color: #f6f6f6;
		padding: 20rpx 30rpx;
		height: auto;
		min-height: 100%;
	}
</style>